//
//  YMPlayerSlider.m
//  SmartCar
//
//  Created by y s on 2022/12/25.
//

#import "YMPlayerSlider.h"

#define MARGEN 7
@implementation YMPlayerSlider

- (CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value{
    
    CGRect temp = [super thumbRectForBounds:bounds trackRect:rect value:value];
    CGRect bigRect = CGRectMake(temp.origin.x - MARGEN, temp.origin.y - MARGEN, temp.size.width + MARGEN * 2, temp.size.height + MARGEN * 2);
    return bigRect;
    
}

@end
